package com.se.mapper;

import com.se.domain.mysql.OptionDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OptionMapper {
    void insertAll(@Param("list") List<OptionDO> list);

    List<OptionDO> listByQIds(@Param("list") List<Long> qIdList);

    @Select("select * from `option` where q_id = #{qId} and active = true")
    List<OptionDO> listByQId(@Param("qId") Long qId);
}
